#include"Block.h"
#include"arg.h"

Block::Block(int x, int y, int color) {
    m_x = x;
    m_y = y;
    m_color = color;
    setfillcolor(colors[m_color]);
    setlinecolor(colors[m_color]);
    fillrectangle(m_x + 1, m_y + 1, m_x + CELL_SIZE - 1, m_y + CELL_SIZE - 1);
}
Block::~Block() {
    setfillcolor(WHITE);
    setlinecolor(WHITE);
    fillrectangle(m_x + 1, m_y + 1, m_x + CELL_SIZE - 1, m_y + CELL_SIZE - 1);
}
